package com.kaifamiao.month03.day0330;

public class Array {

    public static void change(int[][] arr) {
        for (int[] i : arr) {
            i[1]  = 0;
        }
    }

    public static void change(int[] a) {
        a = new int[5];
    }

    public static void main(String[] args) {
        int[][] arr = {{1, 2, 3}, {2, 2, 2, 2}, {3, 3, 3, 3, 3}};
        change(arr);
        change(arr[1]);
        int[][] array = {{1, 2, 3}, {2, 2, 2, 2}, {3, 3, 3, 3, 3}};
        for (int[] a : array) {
            for (int i : a) {
                System.out.println(i);
            }
        }
        for (int[] ints : array) {
            for (int anInt : ints) {
                System.out.println(anInt);
            }
        }
        System.out.println(arr[1].length);
        for (int[] a : arr) {
            for (int i : a) {
                System.out.print(i);
            }
        }
    }
}
